import { createRouter,createWebHashHistory } from "vue-router";
import Index from '~/pages/index.vue'
import About from '~/pages/about.vue'
import NotFound from '~/pages/404.vue'
import Login from '~/pages/Login.vue'
const routes = [{
    path:"/",
    component: Index,
},{
    path:"/about",
    component: About
},{
    path:"/login",
    component:Login
},{
    path:"/:pathMatch(.*)*",
    name:"NotFound",
    component:NotFound
}]
const router = createRouter({
    history:createWebHashHistory(),
    routes:routes
})
export default router